package com.wlf.admin;

import cn.hutool.extra.spring.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;

@EnableCaching
@SpringBootApplication
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        String ctxPath = SpringUtil.getProperty("server.servlet.context-path");
        String port = SpringUtil.getProperty("server.port");
        System.out.println("\n" + "项目本地访问地址: http://localhost:" + port  + ctxPath);
    }
}
